package com.xz.knowledgeDuplication.pattern.visitor;

/**
 * 猫(具体元素角色)
 *
 * @author 召
 * @date 2022-03-30 21:36:54
 */
public class Dog implements Animal{

    @Override
    public void accept(Person person) {
        person.feed(this);
        System.out.println("汪~");
    }
}
